let util = {

};

import { sprintf, vsprintf } from 'sprintf-js';

util.title = function(title) {
    title = title ? title + ' - Home' : 'iView project';
    window.document.title = title;
};

util.addMicrotimeUnit = function(mstime) {
    return sprintf("%.3f ms", mstime/1000);
};

util.addMemoryUnit = function(memoryUsage) {
    return sprintf("%.3f MB", memoryUsage/1024/1024);
}

export default util;